import requests

path = "./PPX/"

api_url = 'https://i-lq.snssdk.com/bds/cell/cell_comment/'
headers = {
    'User-Agent': 'ttnet okhttp/3.10.0.2',
    'Host': 'i-lq.snssdk.com',
    'Connection': 'Keep-Alive'
}

param = {
    'cell_id': '6884917158271260935',
    'aid': '1319',
    'app_name': 'super',
}


def parse_url():
    response = requests.get(api_url, headers=headers, params=param)
    video = response.json()['data']['cell_comments'][0]['comment_info']['item']['video']
    video_name = video['text']
    video_url = video['video_high']['url_list'][0]['url']
    print("video_name：" + video_name)
    print("video_url：" + video_url)


if __name__ == '__main__':
    parse_url()